/* pages/music-player/music-player.wxss */
@import url(/styles/utils.less);
@import url(/styles/icomoon.less);

.press-effect {
  background-color: rgba(255, 255, 255, 0.3);
}

.image-blur,
.mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.mask {
  background-color: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
}

.nav-bar-tabs {
  display: flex;
  .item {
    font-size: 29rpx;
    color: rgba(255, 255, 255, 0.3);
  }
  .divider {
    margin: 0 8rpx;
    color: rgba(255, 255, 255, 0.4);
    transform: scale(0.6);
  }
  .active {
    color: #fff;
  }
}

.song-page {
  display: flex;
  flex-direction: column;
  padding: 0 60rpx;
  .song-cover {
    margin: 40rpx 0;
    width: 100%;
    height: 650rpx;
    border-radius: 20rpx;
  }
  .song-info {
    .song-name {
      .two-lines-ellipsis();
      min-height: 56rpx;
      margin-bottom: 10rpx;
      font-size: 40rpx;
      font-weight: 500;
      color: #fff;
    }
    .song-artist {
      .one-line-ellipsis();
      font-size: 30rpx;
      color: rgba(255, 255, 255, 0.6);
    }
  }
  .line-lyric {
    .two-lines-ellipsis();
    height: 88rpx;
    margin: 40rpx 0;
    font-size: 30rpx;
    color: rgba(255, 255, 255, 0.6);
  }
  .progress {
    .slider {
      margin: 20rpx 0;
    }
    .time {
      display: flex;
      justify-content: space-between;
      margin-top: 20rpx;
      color: #fff;
      .time-current {
      }
      .time-duration {
      }
    }
  }

  .song-control {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);

    .btns {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin: 40rpx 0;
      font-size: 60rpx;

      .icomoon:active {
        color: rgba(255, 255, 255, 0.6);
      }
    }

    .btn-play {
      font-size: 130rpx;
    }
  }
}
.lyric-page {
  .lyric-list {
    padding: 30rpx 30rpx 160rpx 30rpx;
    height: 100%;
    color: #eee;
    text-align: left;
    font-size: 34rpx;

    .lyric-item {
      padding: 0 30rpx;
      line-height: 80rpx;
      border-radius: 20rpx;

      // &:active {
      //   background-color: rgba(255, 255, 255, 0.3);
      // }
    }

    .current-active {
      color: #fff;
      font-size: 42rpx;
      line-height: 60rpx;
      padding: 30rpx;

      font-weight: 700;
      transition: font-size 200ms, height 0;
    }

    .tap-active {
      animation: tap-animation 1000ms ease-in-out;
    }
    @keyframes tap-animation {
      from {
        background-color: rgba(255, 255, 255, 0.3);
      }
      to {
        background-color: transparent;
      }
    }
  }

  .lyric-control {
    position: fixed;
    bottom: 0;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    width: 100%;
    padding: 0 40rpx 30rpx 40rpx;
    height: 160rpx;

    .btn-play {
      font-size: 100rpx;
      color: #fff;
    }
  }
}

wx-slider .wx-slider-handle-wrapper {
  height: 5px;
}

// 自定义 van-slider 样式
.van-slider {
  background-color: rgba(255, 255, 255, 0.3) !important;

  .van-slider__bar {
    background-color: #fff;
    transition: all 0s !important; // 禁用滑块动画
  }

  .van-slider__button {
    height: 11px;
    width: 11px;

    &:active {
      height: 13px;
      width: 13px;
      transition: all 0.2s ease;
    }
  }
}
// 拖动滑块时，按钮变大
.dragging {
  .van-slider__button {
    height: 13px;
    width: 13px;
  }
}
